var crypto = require('crypto');
var md5 = crypto.createHash('md5');

function md5(str){
    var pass = md5.update(str).digest('hex');
    console.log(pass);
    return pass;
}

exports.md5=md5;